package rabbit.common;

import javax.xml.bind.annotation.*;
import java.io.Serializable;

/**
 * Created by root on 17-4-9.
 */
@XmlType
public class rabbitMqConfig implements Serializable {

    private static final long serialVersionUID = 8745578444312339136L;

    private String id;
    private String host;
    private int netWorkRecoveryInterval;
    private String queueName;
    private boolean persist;

    @XmlAttribute
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @XmlElement
    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    @XmlElement
    public int getNetWorkRecoveryInterval() {
        return netWorkRecoveryInterval;
    }

    public void setNetWorkRecoveryInterval(int netWorkRecoveryInterval) {
        this.netWorkRecoveryInterval = netWorkRecoveryInterval;
    }
}
